<?php

declare(strict_types=1);

namespace App\User\Model;

use Mine\MineModel;

/**
 * @property int $id ID
 * @property int $balance 余额
 * @property int $diamond_balance 第二余额
 * @property int $pay_money 总充值金额
 * @property int $withdrawal_money 提现总金额
 * @property int $withdrawal_num 用户提取次数
 * @property int $points 用户积分
 * @property int $lucky_val 幸运值
 * @property int $pay_start_time
 * @property int $pay_end_time
 * @property int $created_by 创建者
 * @property int $create_time 创建时间
 * @property int $update_time 更新时间
 */
class UserAccount extends MineModel
{
    protected ?string $dateFormat = 'U';
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'user_account';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'balance', 'diamond_balance', 'pay_money', 'withdrawal_money', 'withdrawal_num', 'points', 'lucky_val','pay_start_time','pay_end_time','created_by', 'create_time', 'update_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'balance' => 'integer', 'diamond_balance' => 'integer', 'pay_money' => 'integer', 'withdrawal_money' => 'integer', 'withdrawal_num' => 'integer', 'points' => 'integer', 'lucky_val' => 'integer', 'created_by' => 'integer', 'create_time' => 'integer', 'update_time' => 'integer'];
}
